package com.example.shopping.service.impl;

import com.example.shopping.mapper.MerchantsMapper;
import com.example.shopping.pojo.Merchants;
import com.example.shopping.service.Login;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: TODO
 * @author: uu
 * @data: 2023/6/29 17:21
 * @version: v1.0
 */
@Service
public class LoginImpl implements Login {

    @Autowired
    MerchantsMapper merchantsMapper;
    @Override
    public Boolean merchantsLogin(Merchants merchants) {
        Merchants user = merchantsMapper.findMerchants(merchants.getUsername(), merchants.getPassword());
        return user == null ? false : true;
    }
}
